#include "EmotionLabel.h"
#include "define.h"

EmotionLabel::EmotionLabel(int name, QWidget *parent)
	: emotionName(name), QClickLabel(parent)
{
	setAlignment(Qt::AlignCenter);
	setObjectName("emotionLabelItem");
	setFixedSize(QSize(32, 32));
	QString imgPath = IMG_PATH(QString::number(name));
	setPixmap(QPixmap(imgPath));

	connect(this, &QClickLabel::clicked, [this]() {
		emit emotionClicked(emotionName);
	});
}

EmotionLabel::~EmotionLabel()
{
}
